package hb.software.salary.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import hb.software.salary.domain.Salary;
import hb.software.salary.service.SalaryManager;
import hb.software.web.spring.controller.GenericController;

/**
 * @ClassName: SalaryController
 * @Description: Controller of Salary Module
 * @author LiXiangxiang
 * @date May 27, 2020 6:57:35 PM
 * 
 */
@Controller
@RequestMapping("/worker/salary")
public class SalaryController extends GenericController<Salary, Long, SalaryManager> {

	SalaryManager salaryManager;

	@Autowired
	public void setSalaryManager(SalaryManager salaryManager) {
		this.salaryManager = salaryManager;
		this.manager = this.salaryManager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/salary/index";
		return result;
	}

}
